namespace NSBuilder {
    export class Meal {
        private items;
        constructor() {
            this.items = new Array<Iitem>();
        }
        addItem(item: Iitem) {
            this.items.push(item);
        }
        toString() {
            let ret = '';
            this.items.forEach(i => {
                // const detail = `name: ${i.name()},packing: ${i.packing()},price: ${i.price()}</br>`;
                // ret = (ret) ? (ret += detail) : detail;
                ret += `name: ${i.name()},packing: ${i.packing()},price: ${i.price()}</br>`;
            });
            return ret;
        }
    }
}
